﻿<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri= "http://java.sun.com/jsp/jstl/core" prefix= "c" %>
<%@taglib uri= "/WEB-INF/tld/fn.tld" prefix= "fn" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>银行理财产品内容详情</title>
    <link href="${pageContext.request.contextPath }/portal/scripts/layout.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="${pageContext.request.contextPath }/util/js/jquery.js"></script>
    
</head>
<body>
  <div id="container">
  
    <div id="mainContent">
      <jsp:include page="./../common/top.jsp" flush="true" />
      
      <div class="content"> 
        <div class="subpageLeft">
          <div class="titleshort">
            <div class="titlearrow"></div>
            <div class="titlecaption">产品列表</div>
            <div class="titlemore"></div>
          </div>
          <div id="productsTypeDiv">
            <table class="subpageTable">
              <c:if test="${not empty requestScope.producttypeLst }">
              <c:forEach items="${requestScope.producttypeLst }" varStatus="status" var="item">
              <tr style="height: 20px">
                <td>
                  <a href="./products.do?productTypeId=${item.id }">${item.typeName }</a>
                </td>
              </tr>
              </c:forEach>
              </c:if>
            </table>
          </div>
        </div>
        
        <div class="subpageRight">
          <div class="titlelong">
            <div class="titlearrow"></div>
            <div class="titlecaption">银行理财产品内容详情</div>
            <div class="titlemore"></div>
          </div>
           
          <div>
            <table class="subpageTable">
              <tr style="height: 30px;">
                <td class="detailHd">产品名称</td>
                <td colspan="3" class="detailTd">${bankProductDetail.productName }</td>
              </tr>
              <tr style="height: 30px;">
                <td class="detailHd" width="25%">发行银行</td>
                <td class="detailTd" width="25%">${bankProductDetail.bank }</td>
                <td class="detailHd" width="25%">币种</td>
                <td class="detailTd" width="25%">${bankProductDetail.currency }</td>
              </tr>
              <tr style="height: 30px;">
                <td class="detailHd" width="25%">委托管理期</td>
                <td class="detailTd" width="25%">${bankProductDetail.timeLimit }天</td>
                <td class="detailHd" width="25%">收益起计日</td>
                <td class="detailTd" width="25%">${bankProductDetail.earningsStartDate }</td>
              </tr>
              <tr style="height: 30px;">
                <td class="detailHd" width="25%">销售起始日期</td>
                <td class="detailTd" width="25%">${bankProductDetail.startDate }</td>
                <td class="detailHd" width="25%">销售终止日期</td>
                <td class="detailTd" width="25%">${bankProductDetail.endDate }</td>
              </tr>
              <tr style="height: 30px;">
                <td class="detailHd" width="25%">付息周期</td>
                <td class="detailTd" width="25%">${bankProductDetail.paymentCycle }天</td>
                <td class="detailHd" width="25%">预期最高年化收益率（%）</td>
                <td class="detailTd" width="25%">${bankProductDetail.expectedProfit }</td>
              </tr>
              <tr style="height: 30px;">
                <td class="detailHd" width="25%">产品类型</td>
                <td class="detailTd" width="25%">${bankProductDetail.productType }</td>
                <td class="detailHd" width="25%">委托起始金额</td>
                <td class="detailTd" width="25%">${bankProductDetail.startAmount }万元</td>
              </tr>
              <tr style="height: 30px;">
                <td class="detailHd" width="25%">收益类型</td>
                <td class="detailTd" width="25%">${bankProductDetail.earningsType }</td>
                <td class="detailHd" width="25%">发售地区</td>
                <td class="detailTd" width="25%">${bankProductDetail.placeArea }</td>
              </tr>
              <tr style="height: 30px;">
                <td class="detailHd" width="25%">递增单位（元）</td>
                <td class="detailTd" width="25%">${bankProductDetail.incrementBy }</td>
                <td class="detailHd" width="25%">产品管理费（元）</td>
                <td class="detailTd" width="25%">${bankProductDetail.fees }元</td>
              </tr>
              <tr style="height: 30px;">
                <td class="detailHd" width="25%">是否保本</td>
                <td class="detailTd" width="25%">
                  <c:if test="${bankProductDetail.breakEven eq 0 }">否</c:if>
                  <c:if test="${bankProductDetail.breakEven eq 1 }">是</c:if>
                </td>
                <td class="detailHd" width="25%">在售状态</td>
                <td class="detailTd" width="25%">
                  <c:if test="${bankProductDetail.placeStatus eq 0 }">未开始销售</c:if>
                  <c:if test="${bankProductDetail.placeStatus eq 1 }">正在销售中</c:if>
                  <c:if test="${bankProductDetail.placeStatus eq 2 }">已结束销售</c:if>
                </td>
              </tr>
              <tr style="height: 30px;">
                <% 
                  request.setAttribute("vEnter", "\n"); 
                %>
                <td class="detailHd">提前终止条件</td>
                <td colspan="3" class="detailTd">
                  ${fn:replace(bankProductDetail.earlyTermCond, vEnter, "<br/>") }
                </td>
              </tr>
              <tr style="height: 30px;">
                <td class="detailHd">产品说明</td>
                <td colspan="3" class="detailTd">
                  ${fn:replace(bankProductDetail.productDesc, vEnter, "<br/>") }
                </td>
              </tr>
              <tr style="height: 30px;">
                <td class="detailHd">收益率说明</td>
                <td colspan="3" class="detailTd">
                  ${fn:replace(bankProductDetail.eariningsDesc, vEnter, "<br/>") }
                </td>
              </tr>
            </table>
          </div>
        </div>
      </div>
      <div id="footerdiv">
      	<jsp:include page="./../common/bottom2.jsp" />
      </div>
    </div>
  </div>
</body>
</html>
